package com.hs.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.hs.sfzy.entity.Course;
import com.hs.sfzy.entity.CourseDTO;
import com.hs.sfzy.entity.Coursemark;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: sfzyBackEnd
 * @BelongsPackage: com.hs.sfzy.service
 * @ClassName CourseService
 * @Author: 陈千鱼不是鱼
 * @CreateTime: 2024-10-24  14:33
 * @Description: TODO
 * @Version: 1.0
 */
public interface CourseService {
    PageInfo<Course> page(CourseDTO courseDTO);

    void save(Course course);

    void deleteById(Integer id);

    void update(Course course);

//    List<Coursemark> findByAvgGrade();

    List<Course> selectForWx(Map map);
    int updateGrade(int courseId);

    Course selectById(Long id);
}
